package com.ibiaoke.order.service;

import com.ibiaoke.common.base.Page;
import com.ibiaoke.order.entity.ShoppingCart;
import com.ibiaoke.order.entity.ShoppingCartGoods;

import java.util.List;

/**
 * Created by Biaoke on 2017/6/26.
 */

public interface ShoppingCartService {

    //根据客户Id，商品Id，获取购物车信息
    ShoppingCart getShoppingCartByCustomerId(Integer goodsId, Integer customerId);

    //根据购物车Id，商品Id，获取购物车信息
    ShoppingCart getShoppingCartByCartId(Integer cartId, Integer customerId);

    //购物车列表
    List<ShoppingCart> listShoppingCart(Integer customerId, Integer shopId);

    void fillGoods(List<ShoppingCart> shoppingCartLists, Integer shopId);

    //删除购物车
    int batchDeleteShoppingCart(String cartId,Integer customerId);

    //添加购物车
    int saveShoppingService(Integer customerId, Integer shopId, Integer goodsId, Integer num);

    //购物车数量
    Long getShoppingCartNum(Integer customerId);

    /****************************************************新版微商城_____购物车**************************************************************/

    void newSaveShoppingCart(Integer customerId, Integer shopId, Integer goodsId, Integer num);

    Integer newDeleteShopppingCart(Integer customerId,String cartId);

    List<ShoppingCart> newListShoppingCart(Integer customerId,Page page);

    Integer updateCartGoodsNum(ShoppingCartGoods shoppingCartGoods);

    Integer getShoppingCartNumber(Integer customerId);
}
